<?php 
if(!defined("BASEPATH")) exit("No direct script acccess allowed");

class Myclass{
    private static $message = array(
    0=>"success",
    1=>"数据已存在"
    );

    function hand_message($code){
        $msg = self::$message[$code];
        return $msg; 
    } 
}
?>
